package com.tddx.activiti.common;

import javax.servlet.ServletContext;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.tddx.activiti.utils.IDataTemplate;
import com.tddx.activiti.utils.SpringContextHolder;

@Component
@SuppressWarnings("unused")
public class Path implements IDataTemplate {
	
	public static String WEBROOT_PATH;
	
	public static String CLASS_PATH;
	
	public static String USER_PATH;

	public Logger log = Logger.getLogger(this.getClass());
	
	@Autowired private ServletContext servletContext;
	
	@Override
	public void init() {
		WEBROOT_PATH = servletContext.getRealPath("/");
		log.info("webroot路径为：" + WEBROOT_PATH);
	}

}
